#include <bits/stdc++.h>
using namespace std;

int main(){
    char c;
    while ((c=cin.get())!='*')
        if (c>='a' and c<='z')
            cout<<c;
    return 0;
}